/**
 * @author Pawel Gadecki <pidzama@gmail.com>
 * 
 */
package spwodne;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Wplata
        implements Serializable {

    final static long serialVersionUID = -2333068556403451846L;

    public Wplata(Float w, Date d) {
        kwota = w;
        data = d;
    }

    public String getDate() {
        SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy");
        String s = df.format(data);
        return s;
    }

    public Float getKwota() {
        return kwota;
    }

    @Override
    public String toString() {
        SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy");
        String s = df.format(data);
        return (new StringBuilder()).append("[").append(s).append(",").append(kwota).append("]").toString();
    }

    public Date getData() {
        return data;
    }
    public Float kwota;
    public Date data;
}
